home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / general / cdbw.exe / CLIENT.FRM (.txt) < prev    next >
Visual Basic Form  |  1991-08-31  |  7KB  |  184 lines

  1. Client
  2. Client
  3. Form2
  4. Frame1
  5. Client Info
  6. Label1
  7. Number:
  8. LabelNumber
  9. Label2
  10. &Name:
  11. TextName
  12. Label3
  13. &Description:
  14. TextDescription
  15. Label4
  16.     &Balance:
  17. TextBalance
  18. Frame2
  19. Address Info
  20. ListAddress
  21. CommandAdd
  22. CommandUpdate
  23. &Update
  24. CommandDelete
  25. &Delete
  26.     CommandOK
  27. CommandCancel
  28. &Cancel
  29. Label1_Click
  30. CommandOK_Click
  31. Client
  32. CommandCancel_Click
  33. CommandAdd_ClickR
  34. Addresss
  35. MODALc
  36. Form_Click
  37. DbErrorG
  38. lStatus
  39.     Form_Load
  40. nClientMode
  41. MODE_ADD
  42. LabelNumber
  43. setuprec
  44. lNextClientNbr
  45. Caption3
  46. ProcessClient
  47. FALSE
  48. endsub
  49.     AddClient
  50. MAX_ADDRESS_RECSU
  51. addressarray5
  52. ProcessClientFields
  53.     clientrecz
  54. lClientNbr1
  55. TextName@
  56. szNameN
  57. szDescriptionZ
  58. TextDesce
  59. TextDescriptionM
  60. dBalance
  61. TextBalance
  62.     szAppName
  63. nAddresses
  64. XDbRecordAdd
  65. addressrec
  66. DbSetAddB
  67. AddToClientListBox
  68. addressarrayrec
  69. nStatus
  70. DbFlush
  71. setup
  72. XDbRecordUpdate
  73. nAddressMode
  74. nAddressReturn#
  75.     RETURN_OK
  76. nAddressRecs
  77. ListAddresso
  78. szStreet|
  79. CommandUpdate_Click
  80. nIndexa
  81.     ListIndex
  82. MODE_UPDATE
  83. DeleteItem
  84. nInde
  85. CommandDelete_Click
  86. ListAddress_Click
  87. ListAddress_DblClick
  88. XDbGetFirstSet
  89. XDbSetGetFirst
  90. XDbSetGetNext
  91. E_NONEXT
  92. E_NOTFOUNDJ
  93. GetAddressMembers
  94. UpdateClientx
  95. UpdateClientListBox
  96. DbSetFindFirst
  97. DbSetDelete
  98. DbRecordDelete
  99. AddAddressMembers
  100. DeleteAddressMembers
  101. MAX_ADDRESS_RECORDS
  102. Local Data
  103. Number of members in address array
  104. Array of addresses
  105. Number of addresses associated with a client recordd
  106. CommandOK_Click
  107. Check the input fields.  If Ok load the client structure
  108. Add the client records
  109. Add the client record to the list box
  110. Update the client record
  111. Update the listbox
  112. CommandCancel_Click
  113. CommandAdd_Click
  114. Check the total number of address records added for this clientl
  115. Maximum # of addresses per client reached!
  116. Set the mode and load the form
  117. If user pressed OK... 
  118. Transfer the global structure to the local structure
  119. Add to list box 
  120. Form_Load
  121. Reset the number of addressese
  122. If add mode, set the client number
  123. Add Client
  124. Set form caption
  125. Update Client"
  126. Set the client infoi
  127. Retrieve the address member recordsr
  128. AddClient
  129. Add the client recorde
  130. client
  131. Error adding client!
  132. Add the address member records
  133. Increment the next client number in setup record
  134. setup"
  135. Error modifying setup record
  136. Flush the records to disks
  137. ProcessClientFields
  138. Check the Name field
  139. Invalid Name field
  140. Load the client record
  141. CommandUpdate_Click
  142. Get the list box index
  143. Copy the structure to the global address structure
  144. Set the address mode and load the form
  145. If user pressed OK...e
  146. Transfer the global structure to local array
  147. Replace the item in the list box
  148. CommandDelete_Click
  149. Get the list box index
  150. Query user for deletion
  151. Delete this item?"
  152. Chose yes, pack the arrayt
  153. Remove the item from the list box 
  154. ListAddress_DblClick
  155. Force an Update click
  156. GetAddressMembers
  157. Retrieve the address member records
  158. Get record
  159. client
  160. address"
  161. client
  162. address"
  163. Check for errors
  164. Done, exit
  165. Error retrieving Address member!
  166. Add to address list box 
  167. Increment local counter
  168. UpdateClient
  169. Update the client record
  170. client
  171. Error updating client!
  172. Delete address member recordss
  173. Add the address member records
  174. Flush the records to disk 
  175. AddAddressMembers
  176. Add the address recordse
  177. Add the address record
  178. address"
  179. Error adding address!"
  180. Make the set connection"
  181. client
  182. address"
  183. Error connecting address to client!"
  184.